package cn.terminus.client.customer.custombusinessinfo.service;

import cn.terminus.client.customer.custombusinessinfo.param.CustomBusinessInfoDeleteParam;
import cn.terminus.client.customer.custombusinessinfo.param.CustomBusinessInfoEditParam;
import cn.terminus.client.customer.custombusinessinfo.param.CustomBusinessInfoNewParam;
import cn.terminus.client.customer.custombusinessinfo.param.CustomBusinessInfoQueryParam;
import cn.terminus.client.customer.custombusinessinfo.result.CustomBusinessInfoResult;
import cn.terminus.result.common.context.TerminusCallContext;
import cn.terminus.result.common.exception.ServiceException;
import cn.terminus.result.common.page.TerminusPageAble;
import cn.terminus.result.common.page.TerminusPageInfo;
import cn.terminus.result.common.result.TerminusResult;

import java.util.List;

/**
 * (CustomBusinessInfo)表服务接口
 *
 * @author makejava
 * @since 2021-07-08 11:18:36
 */
public interface CustomBusinessInfoService {

    /**
     * 新增
     *
     * @param param
     * @param context
     * @return
     * @throws ServiceException
     */
    TerminusResult<String> add(CustomBusinessInfoNewParam param, TerminusCallContext context) throws ServiceException;

    /**
     * 更新
     *
     * @param param
     * @param context
     * @return
     * @throws ServiceException
     */
    TerminusResult<Boolean> update(CustomBusinessInfoEditParam param, TerminusCallContext context) throws ServiceException;


    /**
     * 删除
     *
     * @param param
     * @param context
     * @return
     * @throws ServiceException
     */
    TerminusResult<Boolean> delete(CustomBusinessInfoDeleteParam param, TerminusCallContext context) throws ServiceException;

    /**
     * 查询
     *
     * @param param
     * @param context
     * @return
     * @throws ServiceException
     */
    TerminusResult<List<CustomBusinessInfoResult>> query(CustomBusinessInfoQueryParam param, TerminusCallContext context) throws ServiceException;

    /**
     * 分页查询
     *
     * @param param
     * @param page
     * @param context
     * @return
     * @throws ServiceException
     */
    TerminusResult<TerminusPageAble<CustomBusinessInfoResult>> page(CustomBusinessInfoQueryParam param, TerminusPageInfo page, TerminusCallContext context) throws ServiceException;
}
